home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Examples / canonicalRIB / simpleModels / NuPatch.wwModel / controls.nib / data.nib (.txt) < prev   
Encoding:
NeXT TypedStream Data  |  1995-03-22  |  11.2 KB  |  86 lines

  1. typedstream
  2. IBObjectData
  3. Object
  4. CustomObject
  5. WWTCLInterp
  6.     Responder
  7. WWColorWell
  8. NXColorWell
  9. Control
  10. )set nuPatch(color) {%f %f %f}; updateView
  11. nuPatch(color)
  12. WWThumbWheel
  13. PAThumbWheel
  14. WWThumbWheelCell
  15. PAThumbWheelCell
  16. ActionCell
  17.     Helvetica
  18. &set nuPatch(yTranslate) %f; updateView
  19. nuPatch(yTranslate)
  20. &set nuPatch(zTranslate) %f; updateView
  21. nuPatch(zTranslate)
  22. &set nuPatch(xTranslate) %f; updateView
  23. nuPatch(xTranslate)
  24. WWTextField
  25.     TextField
  26. WWTextFieldCell
  27. TextFieldCell
  28.     translate
  29. WWSlider
  30. Slider
  31. WWSliderCell
  32. SliderCell
  33. dddf@d@
  34. NXImage
  35. NXCachedImageRep
  36. NXImageRep
  37. iisssssS
  38. iiiiiiS
  39. [2000c]
  40. "set nuPatch(xScale) %f; updateView
  41. nuPatch(xScale)
  42. -10.00
  43. "set nuPatch(yScale) %f; updateView
  44. nuPatch(yScale)
  45. "set nuPatch(zScale) %f; updateView
  46. nuPatch(zScale)
  47. scale
  48. ScrollView
  49. ClipView
  50. ciifffcfffs
  51. [1509c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
  52. \margl40
  53. \margr40
  54. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f0\b0\i0\ulnone\fs24\fc0\cf0 Note that this non-uniform rational b-spline (NURBS) surface seems really coarse. To see what I mean, use prman to render it - it looks like a box when qrman renders it, but a really nice cylinder when prman renders it.  Also notice that the "QR" subpanel of the "C" part of the WW3DWell control panel has no effect on it.  Weird, huh?\
  55. The problem is that the tesselations values that you pass in to qrman are totally inappropriate for things other than NURBS.  In other words, if you use values of (16,16) (the default "nice" value in the WW3DWell), you would get a NURBS surface that would take forever to render on most NEXTSTEP boxes.  In other words, a low value (say 1 to 4) does a reasonable job for your average complexity NURBS surface you get from (say) Alias, but give you a really bad quadric. \
  56. So, as a somewhat lame workaround, all RIBNuPatch objects do a \
  57. \fs20  RiAttributeBegin();\
  58.     RiGeometricApproximation(RI_TESSELATION, RI_PARAMETRIC, tesselationVector, RI_NULL);\
  59.     RiNuPatchV(nU, uOrder, uKnot, uMin, uMax, nV, vOrder, vKnot, vMin, vMax, n, tokens, parms);\
  60.   RiAttributeEnd();\
  61. \fs24 \
  62. In their renderSelf: method.\
  63. which has the effect of allowing you to intermix NuPatch objects and quadrics and not take forever to have qrman render it.\
  64. As an example, take a look at the "dizzyHorse" example.
  65. NXCursor
  66. NXibeam
  67. Scroller
  68. _doScroller:
  69. @@@ffs&
  70. #set nuPatch(yRotate) %f; updateView
  71. nuPatch(yRotate)
  72. #set nuPatch(zRotate) %f; updateView
  73. nuPatch(zRotate)
  74. #set nuPatch(xRotate) %f; updateView
  75. nuPatch(xRotate)
  76. rotate
  77. WindowTemplate
  78. iiii***@s@
  79. NuPatch controls
  80. Panel
  81. File's Owner
  82. controls
  83. IBOutletConnector
  84. IBConnector
  85. controlPanel
  86.